//
//  DoImagePickerManager.h
//  cloudstudy-revive-applestore
//
//  Created by jieer on 2019/1/2.
//  Copyright © 2019年 sdgh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Photo.h"
#import <Photos/Photos.h>
#import "DoImagePickerCollectionViewCell.h"
@interface DoImagePickerManager : NSObject
typedef enum {
    FULL,    //全部
    CUSTOM   //自定义相册
} AlbumType;

+ (DoImagePickerManager*) instance;
@property(nonatomic)AlbumType albumType;

-(NSMutableArray*)getAllAssetCollections;

-(Photo*)getPhoto:(NSString*)title;

/**
 获取相册资源

 @param selImage YES表示选择；NO表示选择图片视图等
 @return return value description
 */
- (Photo *)getAllAsset:(BOOL)selImage;


+(void)reloadLabel:(NSMutableArray<NSNumber *>*)btnArray  collection:(UICollectionView*)collection;



+(void)getOriginalImage:(PHAsset*)asset block:(void(^)(UIImage*image))block;


+(void)downlodImageForAssets:(PHAsset*)asset getImage:(void(^)(UIImage*image))success;

/**
 得到视频相关的信息

 @param asset asset description
 @param infoBlock infoBlock description
 */
+ (void)downloadVideoInfoForAssets:(PHAsset *)asset videoInfo:(void(^)(NSURL *videoUrl, float fileSize, double seconds, UIImage *srcImage))infoBlock;



@end
